package com.bonc.apim.dao;

import com.bonc.apim.entity.Record;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 查询审批记录(流程实例id)
 * @author wishes
 */
@Transactional
public interface RecordDao extends JpaRepository<Record, Long> {
	
	public List<Record> findByProInsId(String proInsId);
	public List<Record> findByProInsId(String proInsId, Sort sort);

	public List<Record> findByApprover(String approver);
	
}
